package com.maxlen.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.maxlen.common.utils.PageUtils;
import com.maxlen.common.utils.R;
import com.maxlen.goods.entity.SkuInfoEntity;
import com.maxlen.goods.entity.dto.SearchHomeDTO;
import com.maxlen.goods.entity.to.SkuPriceTO;
import com.maxlen.goods.entity.to.SpuAndSkuTO;
import com.maxlen.goods.entity.vo.SkuInfoPageParamsVO;
import com.maxlen.goods.entity.dto.SkuItemDTO;

import java.util.List;
import java.util.concurrent.ExecutionException;

/**
 * sku信息
 *
 * @author MaxLen
 * @email MaxLen@gmail.com
 * @date 2022-10-27 09:43:29
 */
public interface SkuInfoService extends IService<SkuInfoEntity> {

    PageUtils queryPage(SkuInfoPageParamsVO params);

    void saveDetail(SkuInfoEntity skuInfoEntity);

    List<SkuInfoEntity> getSkusBySpuId(Long spuId);

    SkuItemDTO getSkuInfo(Long skuId) throws ExecutionException, InterruptedException;

    R getSkuInfoHome();

    List<SkuPriceTO> getSkuPriceBySkuIdList(List<Long> skuIdList);

    SpuAndSkuTO getSpuBySkuIdList(List<Long> skuIdList);

    List<SkuInfoEntity> getSkuInfoBySkuIdList(List<Long> skuIdList);

}

